	<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <script type="text/javascript" src="../js/jquery-3.3.1.js"></script>
    <body>
    	<form action="index.jsp" method="post">
    		<input type="text" id="zoneParkingId"value="${param.id}" hidden="hidden">
    		分区名<input type="text" id="zoneParkingName" value="${param.name}"></br>
    		总车位数<input type="number" id="total" value="${param.total}"></br>
    		<input id="update" type="submit" value="修改">
    	</form>
    </body>
    <script type="text/javascript">
    	$(function(){
    		$("#update").click(function(){
    			$.ajax({
    				url:'updatezoneparking',
					method:'get',
					contentType:'application/json',
					dataType:'json',
					data:{
						'zoneParkingId':$("#zoneParkingId").val(),
						'zoneParkingName':$("#zoneParkingName").val(),
						'total':$("#total").val()
					},
					success:function(data){
					}
    			});
    		});
    	})
    </script>
</html>